how to show total data from database